import request from '@/utils/request'

export const login = data => request.post('/sys/login', data)

export const getInfo = () => request.get('/sys/profile')

export const updatePassword = data => request({
  url: '/sys/user/updatePass',
  method: 'put',
  data
})

// 获取加密串（二维码登录）
export function getQrCodeKeyAPI() {
  return request({
    url: '/sys/qrcodeKey'
  })
}

// 获取扫码状态 多种状态 1-5
export function getQrCodeStateAPI(params) {
  return request({
    url: '/sys/qrcodeState',
    params
  })
}
